Fix digests handling.