Fixed bugs for dTemp & dFlex