Issue #3943: Fix a bug that no copy of the object properties