fixed filter/pagination issue in search results, and got rid of search results error