Corrected the API generation.