fix pty-helper