Fix bug in Node Map Generation algorithm

Well spotted @gkellogg

This closes #248.