fixed broken adding of attachments in TB 24 (e.g. for keys)