Sometimes a credit balance will not be applied to a specific invoice, resulting in a $0 Open Balance but an amount overdue.

To solve this, edit the unapplied payment and attach to the open invoice by clicking the box next to the payment:

Once the credit is attached to the original payment, the Amount to Credit will be $0 and the account will be cleared.