fix dark mode switching