Bug fix for dragging an existing line