Bugfix for loading text files.