Fixing bug relating to snapshot attachments