Remove attachments in serialize