Nested heading fix