tgs rogue thread fix #2