A further fix for getEnvironment().
Always refresh in getEnvironment() (to mitigate the cache issue).