fixed bug in csv export