Fix ClassCastExceptin in Cloud settings panel