fix blank search query bug