fixed code gen typo