attachments search bug fix