Fix clone example to use new api