fix dragging event multiple times