                 //Removing the last item 
                 if (dataProvider.length == 0)
                 {
-                    newInterval = []; 
+                    newInterval = new Vector.<Number>(); 
                 }
                 else if (index == 0)
                 {

                }    
                else
                {
                    newInterval = [0];
                }
            }
            else

            invalidateProperties(); 
        }
        
        var oldIndices:Vector.<Number> = selectedIndices;  
        _selectedIndices = newInterval;
        _selectedIndex = getLastItemValue(newInterval);
        // If the selection has actually changed, trigger a pass to 
