cleanup func PatchTableType17