Fix to enable drag & drop again

It was working in 3.1 but broke in the 3.2 release. My guess is that someone tried to improve it but didn't quite finish it. Here's a simple fix that works.