bug fix to paymentsToDate field