fixed bug starting TMS