fixed latex problems