Fix cloning bug.