fix dragging error