fix issue when > 10 pages in PDF