fix error on search results page if no results found.