fixed latex compiler errors