fix(example): update according to API change