Fix the invoices export