fixed bug with anagrams