Fix for incorrect behavior when using dnode synchronously

Please see description in #108