Fix error in Providers initialization