fixed TEX issue