changed NaN fix