fix tex compile