Very Import...

-    this.environment = environment;
+    this.environment = environment.slice(0);