latex bugfixes