Fixes invoices mistakenly becoming paid