Fix bug with 'NaN'.