Describe the problem
The start index is bigger than the end index when you switch perPage number from a smaller number(e.g 10) to bigger(e.g 100) and when you are on the last page already.
How do you reproduce the problem?

Expected behavior
The start index is smaller than the end.
Is this issue blocking you?
No, I can set the page number to 1 every time I switch the perPage number. However, it seems better to keep this behavior default or compute the right index.
Screenshots
The wrong index is 5201 - 523 of 523:

It should be 501-523 of 523:
