Reset minDist each word