fixes inconstant positioning of the header elements