fix not tty