Fixed text_prompts bug.