Clone error using Object.defineProperties