This should fix attachments not loading on the first pageload.