fix digest errors