fixed $_attachments name typo in attach()