resetPlumberWorkerScopeAndRegister bug fix