Fixing bug in the settings