Fix pagination endpoint