fix anagrams