fix out_file