Fixed bug in settings.js