         
         updateLLV(layoutTarget);     
         if (variableColumnWidth)
+        {
+            var endIndex:int = Math.max(0, Math.min(measuredEltCount, eltCount) - 1);
             layoutTarget.measuredWidth =  llv.end(measuredEltCount - 1);
+        }
         else
         {
             var hgap:Number = (measuredEltCount > 1) ? (measuredEltCount - 1) * gap : 0;

     }

    /**
     *  @private 
     *  Compute potentially approximate values for measuredWidth,Height and 
     *  measuredMinWidth,Height.

     */
     private function updateLLV(layoutTarget:GroupBase):void
     {
        var typicalElt:ILayoutElement = typicalLayoutElement;
        if (typicalElt)
        {
