Fixing display of the number of pages