Fix typo in example
Note cloning of obj in setPath & updatePath