fix provider generator to generate a provider