reorg fix, untested
Merge pull request #1 from vialectrum/reorgfix

Prevent server crashing on reorg