fix kumascript for missing attachments