LCM: Fixed in obtaining entity id.