fix typo in variable name

I overlooked a variable usage when I renamed the variable `$list` to `$nodeList` with #61