fix email_digest_helper