Fixed minir errores on PDF generation