some fixes made to invoices