fix widget error on item deletion