Fix a memory leak. Make number of nodes non-zero.