Fix compilation
Don't overwrite header fields if we don't have to