Bugfix: one too many pages in the pagination links.