fix settings bug