fix incorrect TMS guessing