generators::legacy0::generate() bug fix.