Fixed bug with empty search query