Fix tty client