fixing search query