Fix pagination on results page