bug fix for PatchCPU