Fixed a bug in the settings