Switch a widget with a different widget and change the widget switcher

You overwrite it somewhere. Also this sets it twice. Print after settings or use debug to watch the value.