needed to clone the object, because attribute deletion also affected the referenced object