fix minor error in create_out_data_file