Fixed the csv surface flow output file