Fixed a bug in the text file loader.