fix carert issue on text template edition