Fix fatal error in menu manager when using SetEnv E_DEV_MEN