Modify DecodingTask: fix digest check