fixed setSetting bug