Fixed a bug in tcp resource handling.
Release 1.0.5