fix field query bug