Fixed bug where input still points to deleted wire when aborting a new wire