fixed infinite digest