fixed header-init bug