fixed wrong digest