Fix overlength and xterm