fixing page num restart