fix bugs in TA_TypeMap