Fix CSV data generation