fix latex issues