fixed nesting of headers