Cannot read properties of undefined (reading '_query')