                     seek(CursorBookmark.FIRST, newIndex);
                     for (i = 0; i < n; i++)
                     {
-                        node = event.items[i];
-                        delete collection.parentMap[UIDUtil.getUID(node)];
+                        changingNode = event.items[i];
+                        delete collection.parentMap[UIDUtil.getUID(changingNode)];
                     }
                     return;
                 }

            {
                //at the first node in this branch so move to parent
                currentNode = parentNodes.pop();
                currentChildBookmark = childIndexStack.pop();
                var grandParent:Object = parentNodes[parentNodes.length-1];
                //we could probably assume that a non-null grandparent has descendants 
                //but the analogy only goes so far... 

                childNodes = collection.getChildren(currentNode);
                if (childNodes.length > 0)
                {
                    parentBookmarkStack.push(currentChildBookmark);
                    parentNodes.push(currentNode);
                    currentChildBookmark = CursorBookmark.FIRST;
                    childCursor = childNodes.createCursor();
