         type, uid, groupSlug
       }
 
-      JVM.createDomains hostnameAliases
+      JVM.createDomains hostnameAliases, hostnameAliases[0]
 
       vm = new JVM {
         users         : [

            return callback err  if err
            group.addVm vm, (err)=>
              return callback err  if err
              if type is 'group'
                @addVmUsers vm, group, ->
                  callback null, vm


  {permit} = require './group/permissionset'
  {secure} = require 'bongo'
  {uniq}   = require 'underscore'

  KodingError = require '../error'

