fixed a bug in the numEnd method of the pagination class