bug in example API