Fix issue initializing more than 2 nodes.