Fixed a bug that prevented non-string attachments from working