fixing latex problems