fix bug Undefined page number