fix get query bug