this fixes a bug with a NEC switch