Changed how connections are updated when a node is replaced.