fixed a problem with the anagram result