fix default_environment caching