fixed provider deletion