fixes pagination on search results page