fix: ensure a local instance is not registered multiple times

closes #4203
2 files changed