Fixed minor error in example code