correction on the confusion matrix and the edit distance