Fix a corner case bug in insertEdge