Fix check of initial provider