corrected bug for settings values