fix unsynchronized message digest call