Fix application crash upon toggle widget click #709