use getHashes() instead of accessing hash directly.