Fixing some bugs with gem ffcrm_attachments.