fixed bug that causes empty search results