Corrected error in provider selection