Fixed semantic bug in metrics example