Fix parsing number of pages when there is only one page.