Fixed issue causing non-enumerable properties to get copied