Merge pull request #247 from alex/fix-hash-copy

Fixed using copied hashes