fixed some latex errors