fixed provider_init issue