Fixed missing getEnv().