             handleError err
             if err
               return console.warn "Failed to create VM for ", \
-                                   {users, groups, hostnameAliases}
+                                   {users, groups, hostnameAlias}
 
             JVM.createDomains hostnameAliases, hostnameAliases[0]
 

        type, uid, groupSlug
      }


      vm = new JVM {
        users         : [
          { id: user.getId(), sudo: yes, owner: yes }
        ]
        groups        : groups ? []
        hostnameAlias : hostnameAliases[0]
        planOwner
        planCode
        webHome
      }

      vm.save (err)->

        handleError err
        if err
          return console.warn "Failed to create VM for ", \
                               {users, groups, hostnameAlias}

        JVM.createDomains hostnameAliases, hostnameAliases[0]
        target.addVm vm, handleError
