fixed bug that made search not work for empty query