Fix for weird rendering in text_agent.  Closes #55