minor fix in example update code