fix for craches on print Invoices & AKTs