rg=0 fix for attachment_common_types