fix page query bug