fix some bugs related to the quick search bar