fix digest