Fixed a silly refactoring bug in settings.js

Fixed a bug that caused all profile updates to fail thanks to a refactoring fail