Bug fix in VMs selection.