fix swithing of cloud providers