Fixed updateHash check.