Fixed another bug with toggle control.