Fixed Infinity and NaN for settings.