fix rare error when dragging vectors, close #2706