fix re-use of hash causing exception