Fix build error, copy attachments to new revision if they are already saved