fixed heading nesting issues