fixed small attachments bug