fix crash when no search results