fixed tex problems