Fixed check of updateHash setting.