     private function contentGroup_itemRemovedHandler(event:ItemExistenceChangedEvent):void
     {
         // TODO (rfrishbe): need to check for IUIComponent 
-        // as well if checking for IVisualItem?
-        if (event.relatedObject is IVisualItem ||
+        // as well if checking for IVisualElement?
+        if (event.relatedObject is IVisualElement ||
             event.relatedObject is IUIComponent)
         {
             event.relatedObject.owner = null;

                    contentGroup.content = _placeHolderGroup.content;
                
                // Temporary workaround because copying content from one Group to another throws RTE
                for (var i:int = _placeHolderGroup.numItems; i > 0; i--)
                {
                    _placeHolderGroup.removeItemAt(0);  
                }
                
            }

import mx.core.IDeferredContentOwner;
import mx.core.IDeferredInstance;
import mx.core.IFactory;
import mx.core.IVisualElement;
import mx.core.IVisualElementContainer;
import mx.core.IUIComponent;
import mx.core.IViewport;
import mx.core.ScrollUnit;
