Fixed slow loading of text files in RulesWindow