Control Flow Correction Framework