Fixed latex errors