Repair pagination bug.