Fixed not all wires being removed when calling removeWires