Fix bug on CSV export.