fix widget delete bug