patch to fix minor problems with codegen

 
Attachments