Fix erroneous method call in example