re-fixing bug with attachments not showing properly