             if (skipCount > maxSkipCount)
             {
                 maxSkipCount = skipCount;
-                firstIntervalLabel = prevLabel;
-                lastIntervalLabel = _labels[base + dir * (i - 1)];
             }     
-            lastLabel = _labels[maxSkipCount + 1];
+            lastLabel = prevLabel;
         }
         	
         else

                base = n - 1;
                dir = -1;
            }
            var firstIntervalLabel:Object;
            var lastIntervalLabel:Object;
                            
            for (var i:int = 1; i < n; i++)
            {

                    if (skipCount > maxSkipCount)
                    {
                        maxSkipCount = skipCount;
                    }                       
                    skipCount = 0;
                    prevLabel = thisLabel;
