diffCalc bug fix