fixed typeId interfaces bug