fixed pagination in search results