 
       if workspace or name is 'My Workspace'
         query   =
-          owner : client.connection.delegate.profile._id
+          owner : client.connection.delegate._id
           slug  : new RegExp slug
 
         JWorkspace.some query, {}, (err, workspaces) ->

      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

      return callback null, workspace

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