Fix OSTF hang on first start
Fix OSTF hang on tab switch