invoices statuses fix