fix currentpagenum null bug