Off-by-one bug in the pagination.