Fixing error when getting the default setting.