fixes ioc init issue for objects from config