fixed the incorrect value of current page.