Fix the currentPage()