fix bugs of printing invoices and labels