     {
         // Adjust the partition indexes
         // before the "removed" event is dispatched.
-        noTopMostIndex = noTopMostIndex - 1;
+        noTopMostIndex--;
 
         return rawChildren_removeChildAt(applicationIndex + index);
     }

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

        return rawChildren_removeChild(child);
    }

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