Fixed bug with CSV export.