fixing previous page num issue