Critical fixes to list item handling, including fix for delete list items not working.