fixed bug with TThink, helps quite a few problems