Fix pagination to work with Kirby 2.