Pagination fix 3

Fixed minor error in pagination.