Incorrectly incremented the iterator in the item update loop after a deletion.