         mouseCatcher.name = "mouseCatcher";
         // Must use addChildAt because a creationComplete handler can create a
         // dialog and insert it at 0.
-        noTopMostIndex++;
+        noTopMostIndex = noTopMostIndex + 1;
         super.addChildAt(mouseCatcher, 0);  
         resizeMouseCatcher();
         if (!topLevel)

        }

        // Add the application as child 1.
        noTopMostIndex++;
        super.addChildAt(DisplayObject(app), 1);

        CONFIG::performanceInstrumentation

    {
        // Adjust the partition indexes
        // before the "removed" event is dispatched.
        noTopMostIndex = noTopMostIndex - 1;

        return rawChildren_removeChildAt(applicationIndex + index);
    }
