Function patchSemanticType