fix digest error