Fix section nesting bug