Fixed some tex errors