Fixing search query