fix at GenerateCSVFiles