Empty search error fixed