Fix for NaN.