correcting bug in setting dialog