Corrected header nesting