Fixes bug where header was left aligned instead of aligned to its parent element.