fix for getEnv() error.