 				TempSettings.update {_id: _id},
 					$set:
 						value: value
-						changed: Settings.findOne(_id).value isnt value
+						changed: RocketChat.settings.collectionPrivate.findOne(_id).value isnt value
 
 			onChangeDelayed = _.debounce onChange, 500
 

		if not _.isEmpty settings
			RocketChat.settings.batchSet settings, (err, success) ->
				return handleError(err) if err
				toastr.success TAPi18n.__ 'Settings_updated'

	"click .submit .refresh-clients": (e, t) ->

		TempSettings.update {_id: @_id},
			$set:
				value: value
				changed: RocketChat.settings.collectionPrivate.findOne(@_id).value isnt value

	"click .submit .save": (e, t) ->
		group = FlowRouter.getParam('group')
