fixing latex coding errors