CSV export fix