Fix incorrect method call in example