Fix page and chapter numbering.