fixed tex stuff