fix bug of reading page numbers