Fix display of number of pages