Fix wrong method name in example code