fixes issue with digest already in progress error

This fixes the issue referenced in #2.

This change does not break any additional tests (as no tests are passing at the moment).