Fixed bug where getEnv triggeres warning on default controller