Fixed setWLSEnv call