correctly manage setting change