finish edit distance fix issue #126