fix for failing export to csv
Merge pull request #55 from ministryofjustice/export_fix

fix for failing export to csv