Fixes header hierarchy.