fix text_element_spec incorrect escape