minor fix for xterm issue