fix switch command