fix digest problems