Fixed the search and display of search results