private void fixDeadReference(TreeNode referencedNode, TreeNode node) {
			if (node.leftIsWire && node.leftChild == referencedNode) {
				node.leftChild = referencedNode.parent;
			}
			
			if (node.rightIsWire && node.rightChild == referencedNode) {
				node.rightChild = referencedNode.parent;
			}
		}