Fix crash on list deleting