small fix to hash def