Fix TE rendering