Fixed computation of aligned metrics.