Fix incorrect calls to new digest() function.