fixed nNodes error