fix ws in shadow reference for switch