Fix bug on csv empty export.