 
     if typeof paths is 'string'
       paths = FSHelper.getPathHierarchy paths
-    path = paths.pop()
+
+    path = paths.shift()
+
     @expandFolder path, (err) =>
       @unsetRecentFolder path  if err
       if paths.length is 0

  reloadPreviousState: (uid) ->

    recentFolders = @getRecentFolders()
    if uid
      recentFolders = recentFolders.filter (folder) ->
        folder.indexOf "[#{uid}]" is 0
      if recentFolders.length is 0
        recentFolders = ["[#{uid}]/"]
    @expandFolders recentFolders




    { uid } = machine
    mRoots  = (@appStorage.getValue 'machineRoots') or {}
    path    = mRoots[uid] or options.mountPath or '/'
    path   ?= '/root'  if machine.isManaged()
    path   ?= if owner = machine.getOwner()
    then "/home/#{owner}"
