Debug issue with attachments