Fixed empty search error