Fixed bug for onoffswitch.