Fix register provider after host app removed.