Fix pagination. Broken by me recently