         }
         catch (error:SecurityError)
         {
-
-        }
-        invalidateSystemManager();
+            
+        }
+    }
+    
+    /**
+     *  @private
+     */
+    private function removedFromStageHandler(event:Event):void
+    {
+        _systemManagerDirty = true;
     }
 
     /**


        addEventListener(Event.ADDED, addedHandler);
        addEventListener(Event.REMOVED, removedHandler);

        // Register for focus and keyboard events.
        if (this is IFocusManagerComponent)

    {
        if (event.eventPhase != EventPhase.AT_TARGET)
            return;
        
        try
        {
            if (parent is IContainer && IContainer(parent).creatingContentPane)
