Fixed anagram generation bug