When having many pages, the index for the first and last pages are wrong, the data fetched is the wrong range (-1page). This result in having 1 extra page at the end, and a wrong display of the `prev|next` button.