Another fix for export_csv