Fix method name in example code