switch toggle fix