fix for the pagination, numbers only was showing the first, last links