fixed netcat bug