Fix bug #826 Paginator, wrong value for next page