fix the mode of the debug.