diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -20,7 +20,7 @@ let config = {
 		//prebuild the UI stuff
 		for (var key in params) {
 			if (key != '_local' && key != '_global') {
-				ui[key] = merge(params._global && params._global.ui, params[key].ui);
+				ui[key] = merge({}, params._global && params._global.ui, params[key].ui);
 			}
 		}
Fixing bug when global is missing and merge