fixing settings bug