fix metricindex output