fix nodes initialization