                     break;
                 }
                 parentNodes.push(currentNode);
-                childIndexStack.push(currentChildBookmark);                
+                parentBookmarkStack.push(currentChildBookmark);                
                 currentNode = childCursor.current;
                 currentChildBookmark = CursorBookmark.LAST;
                 try

            more = false;        
        currentChildBookmark = CursorBookmark.FIRST;
        parentNodes = [];
        childIndexStack = [];
        currentIndex = 0;
        _currentDepth = 1;
    }

                            }
                        }
                    }
                    else if (parentTable[parentOfChangingNode] != null)
                    {
                        if (changingNodeAndSiblings != null)
                        {
                            changingCollectionCursor = changingNodeAndSiblings.createCursor();
                            try
                            {
                                changingCollectionCursor.seek(currentChildBookmark);
                                changingCollectionCursor.movePrevious();
                                currentChildBookmark = changingCollectionCursor.bookmark;
                            }
                            catch (e:ItemPendingError)
                            {
                            }
                            parentBookmarkStack[parentTable[parentOfChangingNode]] = currentChildBookmark;
                        }
                    }
                }
                delete collection.parentMap[UIDUtil.getUID(changingNode)];
            }
            
        }
