fixed a bug where if an environment setting was updated using __call, it
did not use the __set magic method.