Fix issue with undefined index in TerminalFactory