Fixed a bug where attachments would remain in the object
refactoring