Fixed debug script.