fixed API name in generator