corrected a bug in settings