fix dragging offset