fix csv export