bugfix in next anchor of the pagination