Fixes #6960: Environments no longer disappear on environment selector.