Fix pagination upper and lower bounds