massage NaN to 0.