fix in attaching leases for multiple vms