Fix a bug with only one valued switch.