       return callback null, workspace
 
   some$: secure (client, query = {}, callback) ->
-    query.owner = client.connection.delegate.profile._id
+    query.owner = client.connection.delegate._id
     JWorkspace.some query, callback

      instance     : []

  @create = secure (client, data, callback) ->
    data.owner = client.connection.delegate.profile._id
    data.slug  = Inflector.slugify data.name.toLowerCase()

    {name, slug, machineUId, rootPath, owner, layout} = data


      if workspace or name is 'My Workspace'
        query   =
          owner : client.connection.delegate._id
          slug  : new RegExp slug

        JWorkspace.some query, {}, (err, workspaces) ->
