fixed a small bug in drag & drop