fix attachments not attaching