Fix line dragging