Fix TTY client