Fixed incompatibility between getProviders and getConnectedProviders