fix(core): make deepCopy
backward compatible
#4505
Merged
deepCopy
backward compatible
#4505