fixed a bug when initializing the list of nodes at startup