[api2] Fix api change