bug fix

Initial switch state wasn’t being set in virtual mode