Fixing digest generation.