fixed a bug in netcat