fix theme switching