fixed header generation issue