Bugfix for node renumbering.