Fix fatal error on bundle and controller generate