fix widget delete bug

fix widget delete bug