Simplify patch for debug.