fixing csv export