fix TScopeT usage