fixed the nodes object passing