fix telnet bug