fixed theme switcher bug