fix user query bug