Modify file head