Fixed bug in Levenshtein distance algo used.