Fixed issue with NaN.