ensure clone clones inner objects correctly