Fix CSV export