fixed Switchdemo