Fix error to restore last page.