fix hash bug