Provider not getting connected