Issue 320: fixed error in drag and drop