Fix latex dependency