Fixing detection of environment's site.