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

      e.stopPropagation()

      entry = header.parentNode
      @dragEventCounts.set(entry, @dragEventCounts.get(entry) - 1)
      entry.classList.remove('selected') if @dragEventCounts.get(entry) is 0

  # Handle entry name object dragstart event
  onDragStart: (e) ->
    @selectOnMouseUp = null
    if entry = e.target.closest('.entry')
      e.stopPropagation()


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