fixing edgecase resulting in wrong attributes
fixing edgecase resulting in wrong attributes

Gottox/terminal.js,beni55/terminal.js,Gottox/terminal.js,beni55/terminal.js,beni55/terminal.js,Gottox/terminal.js