fix header init problem