Fix bug #826 Paginator, wrong value for next page

Fix bug #826 Paginator, wrong value for next page