Fixed a small issue selecting different targets, need to unref currentSetting.