fixed headerStruct bug