FIX: getDigest

small yet crucial :)