Bugfixes

bug fixes for csv export