fix hashdigest reader check