fixes typo in generator