Correctly setting contexts so items are cloned.