Attachment url fix