fixed tgs rogue thread