 
       e.dataTransfer.effectAllowed = "move"
       e.dataTransfer.setDragImage(dragImage, 0, 0)
-      e.dataTransfer.setData("initialPaths", initialPaths)
+      e.dataTransfer.setData("initialPaths", @dragPaths)
 
       window.requestAnimationFrame ->
         dragImage.remove()


      for target in @getSelectedEntries()
        entryPath = target.querySelector(".name").dataset.path
        unless path.dirname(entryPath) in initialPaths
          initialPaths.push(entryPath)
          newElement = target.cloneNode(true)
          if newElement.classList.contains("directory")
            newElement.querySelector(".entries").remove()

    @editorsToDestroy = []

    @dragEventCounts = new WeakMap
    @dragPaths = []
    @rootDragAndDrop = new RootDragAndDrop(this)

    @handleEvents()
