small bug fix when there were not enough posts for multiple pages