Fix bug when controller was not activated in WebHost mode