Fix API name generation