Eliminating name sensitivity of patch extraction