small fix in EnvironmentContext