fix typeCode bug just like actCode