Fix example bug: compile error