bug fix in dtRates.R