Fix reset all invoices problem