Tex bugs fixed