Fixed hash bug