Fix generated_classes with dry_run => 1