Fixed a bug in settings.