Fix the search results query