Fixed exception raised when len(wordlist)!=256