fix initial hash bug