Solving search error