fixing displaying attachments