Corrected telnetd_scan and other little issues