fix bug where nameHash incorrectly used an array when it should have use...

Fixes #3