api generator fix