fix for display error on search results page