     
     private function addChild(container:*, child:*):void
     {
-        if (hasParent)
+        if (hasParent && !(container is Group))
            container.addChild(child);
         else
            container.addItem(child);

    
    private function getChildIndex(container:*, child:*):int
    {
        if (hasParent)
           return container.getChildIndex(child);
        else
           return container.getItemIndex(child);

    
    private function addChildAt(container:*, child:*, index:int):void
    {
        if (hasParent && !(container is Group))
           container.addChildAt(child, index);
        else
           container.addItemAt(child, index);
