fix bug essential for header