corrected check on whether payment is due