Fixes error when exporting txt files

Fixes #202