Fix switch state sio it is false if PWM switch and S0