Correct conditions after moving to work object
Correct conditions after moving to work object

Tyriar/xterm.js,xtermjs/xterm.js,Tyriar/xterm.js,xtermjs/xterm.js,Tyriar/xterm.js,Tyriar/xterm.js,Tyriar/xterm.js,xtermjs/xterm.js,xtermjs/xterm.js,xtermjs/xterm.js