#1293 Repair generateCode