Corrected crashing bug in TTS