cleared undefined variable "$node" error.