fixed addon switch default state bug