get correct page if pagination != page on search results