bug fix for search results page