Fixed the core/stub_registry.