Fixing delete of attachments when reloaded.