Fixed a bug with the id of node instances.