fixed incomplete hash bug