fixed the metrics flag lookup