Fixed the UndefinedNonTerminal exception.