fix tpe-trusted handling