fix a bug in checkSetting