Fixed a small bug in TLKThread