Fix drag and drop

For some reason, drag and drop stopped working (was it working in the first place?). This should fix it.