fix  ensure clone clones inner objects correctly