Fix to search query