Fix wrong variable used in example