Bugfix in the internal im_id of the VMs