Fix hash type