Correct pagination off-by-one bug.