fixed an error in phonetic()