Fix hash definition