make sure attachments is an array
Verison 0.4.25