fix generated codes 1