Fix bug in tts