Fix object cloning.