Revert "Revert "生成エラー修正""

This reverts commit 1e8e95f0f7c13091d055e541484ff556cb96c548.