bug fix in getting latest digest