fixed a typo: debug_mdoe -> debug_mode.