Fixed multiple attachments problem