fixed tpmi undefined