Fix node hash computing

- Currently using fn:generate-id in domain:hash