diffCalc fix