Fix current page being shown in the console log instead of last page