Fix for incorrect number of pagelinks when current page < 3