Fix problem that text components were created twice.