fixed levenstein distance bug