KRACOEUS-7858:fixed issues with adding internal attachments