Fix old method name in example