Merge pull request #34 from hampelm/master

Actually fixes undefined records in CSV exports