fixing search error