fixed bug in tcpreceiver