Fixed mixed cloning bug