minor fix#2 in example code