fix potential duplicate digests