Fix error when creating VM in Affinity Group