           if workspace
             return loadWorkspace workspace, params
           else
-            for machine in KD.userMachines when machine.label is machineLabel
+            for machine in KD.userMachines when machine.slug is machineLabel
               break
 
             if machine


    workspaceSlug ?= 'my-workspace'

    KD.getSingleton('router').handleRoute "/IDE/#{machine.label}/#{workspaceSlug}"


  routeToLatestWorkspace = ->

        m = new Machine machine: KD.remote.revive m

      sameUser  = m.getOwner() is username
      sameLabel = (m.slug or m.label) is label

      return m  if sameLabel and sameUser

