fixed the problem with no attachments