Fix: setEnvironment