fixing the tex file