Fix pagination class