Main Tex Fix