Workaround for the ProviderManager injection