Fix potential bug about Hash.
Merge pull request #816 from masamitsu-murase/modify_potential_error_of_hash

Fix potential bug about Hash.