Fix hash bug

I did not see any other place where this idiom was used - but if I missed it, we got to add Utils.toHash there too.
Unfortunately, my response time might be spotty, apologies in advance.