fix switches