fix attachments fetching