fix typo and a crash when cancel widget creation - v2.1.1