Advanced Theme Switcher Resets Main Menu and simply lists all pages in menu

I've got the widget working. But each time I click a theme, the main menu setting is reset. I've followed your blog article (here: https://premium.wpmudev.org/blog/wordpress-different-theme-per-page-post/ ). Need a little support working out which variable to change.