Fixed drag and drop for multiple files

Now it correctly opens up all the files when multiple are dragged and
dropped