correction to if statement for vmdomain