Fixed write_to_file response