Tiny bugfix in api_example