fix for metrics index