Fix attachments on Firefox and Internet Explorer

Fix issue #6.