fixed the settings bug