fix some latex errors