                 }
             } 
         }
-		
-		updateParentMap(currentNode);
+        
+        updateParentMap(currentNode);
 
         currentIndex++;
         return true;

        }
        return true;
    }
	
	/**
	 * @private
	 * Update the parent map.
	 */ 
	private function updateParentMap(currentNode:Object):void
	{
		if (currentNode != null)
		{
			var uid:String = UIDUtil.getUID(currentNode);
			if (!collection.parentMap.hasOwnProperty(uid))
				collection.parentMap[uid] = parentNodes[parentNodes.length - 1];
		}
	}

    /**
     *  @private

            // dispatch CURSOR_UPDATE event
            collection.dispatchEvent(new FlexEvent(FlexEvent.CURSOR_UPDATE));
        }
        else if (event.kind == CollectionEventKind.REFRESH)
        {
            // find the correct index of the item
            if (!(beforeFirst || afterLast))
            {
                findFirst(current);
            }
        }
    }
}

