 				return console.log err
 
 			RocketChat.settings.updateById 'css', data.css
-			process.emit('message', {refresh: 'client'})
+
+			Meteor.startup ->
+				Meteor.setTimeout ->
+					process.emit('message', {refresh: 'client'})
+				, 200
 
 	addVariable: (type, name, value, section, persist=true) ->
 		@variables[name] =

		@compileDelayed()

	getCss: ->
		return RocketChat.settings.get 'css'

		obj = {}
		for name, variable of @variables
			obj[name] = variable.value

		return obj

	getVariablesAsLess: ->
		items = []
		for name, variable of @variables
			items.push "@#{name}: #{variable.value};"

		return items.join '\n'

	addPackageAsset: (cb) ->
