fix possible listing of invoices not due