Fix args to write_file.