fix dragging finishing