fixed the csv export