Fix digest removal. [bug]