Fix bad hierarchy of chapters/sections