fix typo on generator