fix bad numbering for chapters