fixed chapter and section nesting