fixed bug in switch command that caused cmd not working with switch typed devices