Fix wrong method called in example