hotfix for attachment index: metadata type specification.