fixed small bug in pagination display