fix to properly handle object properties overwrite