Fixed calculation of local IMC ID.