Fix return of node hash

Return a hash with name instead.

This was missed in PR #84.