fixed header while saving file.