         if (!_systemManager || _systemManagerDirty)
         {
             var r:DisplayObject = root;
-            if (_systemManager is SystemManagerProxy)
+            if (_systemManager && _systemManager.isProxy)
             {
                 // keep the existing proxy
             }


        // Stage can be null when an untrusted application is loaded by an application
        // that isn't on stage yet.
        if (sm && (sm.stage || sm.useSWFBridge()) && listeningForRender)
        {
            // trace("  removed");
            sm.removeEventListener(FlexEvent.RENDER, callLaterDispatcher);

     */
    private static function get embeddedFontRegistry():IEmbeddedFontRegistry
    {
        if (!_embeddedFontRegistry && !noEmbeddedFonts)
        {
			try
			{
				_embeddedFontRegistry = IEmbeddedFontRegistry(
					Singleton.getInstance("mx.core::IEmbeddedFontRegistry"));
			}
			catch (e:Error)
			{
				noEmbeddedFonts = true;
			}
        }

        return _embeddedFontRegistry;
