Fixes the layout of the header.