fix append hash bug