fixing switches