Fix editing invoices