fix digest problem