tex errors fixed