fixing small errors so that tts works too