switch to calculating currentPage with round() and not ceil()