Fix heading nesting