fix settings_change bugs.