fix(pagination): fix altering of current page caused by totals change

Closes #1079