Some stupid fixes on SettingManager

(Need to sleep now...)