Hash func type fix