fixed unit bug in tdec
update