fix example code bug