fixed exit tex