Fix CSV report generation