Fix typo and update generated code