swap mtx_has_trm and obj_has_trm, fix assignment