Minor fix for adding attachments