Fixed problem with invalid array key in Textfile.py