Fixed a bug which caused the settings to not always load properly at startup.