Fixed tex problems