Current page calculation updated

The calculation for current page was working, except for when the current page was 0.