hash bug fix