Fix compile error in example