Dark mode keeps switching off