Fix switching example