Fixed bug with metric for missed and redundant states