fix dragging exception