Fix the debug script.