Fixing API generation.