fixed a bug with copying hashes.