digest iteration bug