add:    if (OpenLayers.Util.indexOf(this.selectedFeatures, feature) != -1){ OpenLayers.Util.removeItem(this.selectedFeatures, feature); } 
context:     removeFeatures: function(features) {        if (!(features instanceof Array)) {            features = [features];        }        for (var i = features.length - 1; i >= 0; i--) {            var feature = features[i];            this.features = OpenLayers.Util.removeItem(this.features, feature);            this.renderer.eraseGeometry(feature.geometry);        }    },
meta: 1027	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1027/e2468e9f09b09b811a04b0e8519a52023e9f9457/Vector.js/buggy/lib/OpenLayers/Layer/Vector.js