Fix the pagination.