Fixing digest check.