fixing more absurd bug in codegen