fix bug of new textrender.c