Fix pagination bounds