fixed the theme switching