Fix latex errors