Fix toggle event for the example