fix switch.sh