fix for latex - issue 1368