Fixed a crashbug in Editor when deleting selections with wires and comps