fix attachments paths