fixed bug codegen s lib4