Fix for deep cloning.