fix in the example due to api changes

Signed-off-by: Wouter Vroege <wouter@woutervroege.nl>