Fix error in debug script