fixing settings nesting