fix afterDelete