fix for invoices