fix check for plugin being a provider