-fix race condition for resetting block chain