fix closed invoices table