fixed bug with provider selectation