                 horizontalMargins[i] = { marginLeft: ml, marginRight: mr, halign: halign };
             }
 
-            for (i = n - 1; i >= flexChildIndex; i--)
+            for (i = n - 1; i > flexChildIndex; i--)
 			{
 				child = contentView.getElementAt(i) as IUIBase;
 				margin = ValuesManager.valuesImpl.getValue(child, "margin");

		{
		}
		
        // the strand/host container is also an ILayoutChild because
        // can have its size dictated by the host's parent which is
        // important to know for layout optimization

            var pl:Number = Number(paddingLeft);
            var pt:Number = Number(paddingTop);
            var pr:Number = Number(paddingRight);
            if (isNaN(pl))
                pl = 0;
            if (isNaN(pr))
                pr = 0;
            if (isNaN(pt))
                pt = 0;
            return {paddingLeft:pl, paddingTop:pt, paddingRight:pr};
        }

