fixing search results pagination