repairing corruption in .tex