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