There is an issue with the pagination control. Please follow the below mentioned steps to reproduce.
1. Click on the last page button (>>) in the pagination control with data spanning multiple pages
2. Change the number of records per page from 10 to 25
3. Change the number of records back to 10.
Expectation - Last page will be the active page
Actual - 3rd last page is the active page
Please help in resolving this issue.