fix potential crash when user remove self in widgets callback