fixed update settings bug