Fix CodeObject code generation