fixed last pagination link not being displayed