fixed text template bug.