         else
             localItems = [items];
              
-        if ((propertyName == null || propertyName == "content") && dest is Group)
+        if ((propertyName == null || propertyName == "content") && (dest is Group || dest is ItemsComponent))
         {
             for (i = 0; i < numAdded; i++)
-                Group(dest).removeItemAt(startIndex);
+                dest.removeItemAt(startIndex);
         }
         else if (propertyName == null && dest is Container)
         {

                break;
        }    
        
        if ( (propertyName == null || propertyName == "content") && dest is Group)
        {
            addItemsToContentHolder(dest as Group, localItems);
        }
        else if (propertyName == null && dest is Container)
        {

    {
        try
        {
            if (propertyName == null && (dest is Group || dest is ItemsComponent))
                return dest.getItemIndex(object);
            
            if (propertyName == null && dest is Container)
                return Container(dest).getChildIndex(DisplayObject(object));
